

# for 语句 中使用 continue
for x in range(5):
    if x % 2 == 0:
        continue
    print(x)  # 1 3

print('-' * 50)
# for 语句 中使用 continue
x = 0
while x < 5:
    if x % 2 == 0:  # 跳过偶数
        x += 1
        continue
    print(x)
    x += 1
